var net = require('net');
var o = {};
var o1 = { a: 1, b: 2 };
delete o1["a"];
delete o1["b"];
console.log(o1);

const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,14,14,15,16,17,18,19,20]);

const cc = Buffer.allocUnsafe(18);
buf1.copy(cc, 0, 0, 18);
console.log(cc);
//var o2 = { b: 2 };
//var o3 = { c: 3 };

//var obj = Object.assign(o,o1);
//console.log(obj); // { a: 1, b: 2, c: 3 }
//console.log(o1);  // { a: 1, b: 2, c: 3 }, target object itself is changed.


